﻿{% load extra_tags %}
                <table border="0" class="header-table">
                    <tbody>
                        <tr>
                            <td style="width:200px;vertical-align:bottom">
                                <a href="/" >
                                    <img style="" src="/content/images/logo.png" alt="回到首页" border="0" align="bottom" />
                                </a>
                            </td>
                            <td style="vertical-align:top">
                                <table border="0" style="width:100%;height:100%">
                                    <tbody>
                                        <tr style="height:50px">
                                            <td style="width:500px; vertical-align:top;text-align:left">
                                                <div id="header-links">
                                                    {% if request.user.is_authenticated %}
                                                        <a href="/users/{{ request.user.id }}/{{ request.user.username }}/">{{ request.user.username }}</a> {% get_score_badge request.user %} <span class="link-separator">|</span><a href="/logout/">退出登录</a>
                                                    {% else %}
                                                        <a href="/account/signin">登录</a>
                                                    {% endif %}
                                                    <span class="link-separator">|</span>
                                                    <a href="/about">关于本站</a>
                                                    <span class="link-separator">|</span>
                                                    <a href="/faq">FAQ</a>
                                                </div>
                                                <div style="padding:5px 0 3px 0">
                                                    <span class="header-notification">Beta阶段，报告bug？提新的需求？好的想法？<a target="_blank" href="http://cnprog.uservoice.com">cnprog.uservoice.com</a></span>
                                                </div>


                                            </td>
                                            <td style="text-align:right">
                                                <form >
                                                    <input id="search" size="20" />
                                                    <input type="submit" value="搜索" class="submit"  />
                                                </form>


                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align:left">
                                                <div class="nav">
                                                    <UL>
                                                        <LI class="" id="nav_questions">
                                                            <A href="/questions/">问题</A>
                                                        </LI>
                                                        <LI class="" id="nav_tags">
                                                            <A href="/tags/">标签</A>
                                                        </LI>
                                                        <LI class="" id="nav_users">
                                                            <A href="/users/">用户</A>
                                                        </LI>
                                                        <LI class="" id="nav_badges">
                                                            <A href="/badges/">奖牌榜</A>
                                                        </LI>
                                                        <LI class="" id="nav_unanswered">
                                                            <A href="/questions/unanswered/">没有回答的问题</A>
                                                        </LI>

                                                    </UL>
                                                </div>
                                            </td>
                                            <td style="text-align:right">
                                                <div class="nav" style="float:right;margin-right:-5px">
                                                    <UL class="mainnav">
                                                        <LI class="" id="nav_ask">
                                                            <A href="/questions/ask">我要提问</A>
                                                        </LI>
                                                    </UL>
                                                </div>

                                            </td>
                                        </tr>
                                    </tbody>
                                </table>


                            </td>
                        </tr>
                    </tbody>
                </table>